var myVue = new Vue({
	el: "body",
	data: {
		username: "未登录"
	},
	created: function() {
		init();
		_this = this
		currentUser = AV.User.current();
		if(currentUser) {
			console.log(currentUser)
			_this.username = currentUser.attributes.username
		}
	},
	methods: {
		isLogin: function() {
			verifyLogin()
		}
	}
})

function verifyLogin() {
	currentUser = AV.User.current();
	if(currentUser) {

	} else {
		location.href = "../login/login.html?RetUrl=" + getPageUrl()
	}
}